package com.tjh.springbootapi.webSocket;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Service;

/**
 * Create by koala on 2022-08-21
 */
@Service
public class WebSocketInitializer implements InitializingBean{

    @Override
    public void afterPropertiesSet() throws Exception {
        new Thread(new NettyFactory().createWebSocketService(5255)).start();
    }
}